package com.lc;

import cn.hutool.core.io.FileUtil;
import com.lc.config.TemplatesUtils;
import com.lc.domain.Templates;
import freemarker.template.TemplateException;

import java.io.File;
import java.io.IOException;

public class BaseCopy {
    public static void main(String[] args) throws TemplateException, IOException {
        String path = System.getProperty("user.dir");
        String srcPath = path + File.separator + "cod-demo" + File.separator + "demo0";
        System.out.println(srcPath);
        copyByHutool(srcPath,path);


    }

    public static void copyByHutool(String srcPath, String destPath){
        FileUtil.copy(srcPath,destPath,true);
    }
}